import axiosInstance from "../axiosinstance";

const addressInfo={
    getMyAddressInfoList(){
        return axiosInstance.get('addressInfo/getMyAddressInfoList'
        )
    },
    addAddress({address,phone,person_name,tag}){
        return axiosInstance.post('addressInfo/addAddress',{
            address,phone,person_name,tag
        })
    },
    findById(id){
        return axiosInstance.get('addressInfo/findById',{
                params:{
                    id
                }
            }
        )
    },
    deleteById(id){
        return axiosInstance.get('addressInfo/deleteById',{
                params:{
                    id
                }
            }
        )
    },
    update({address,phone,person_name,tag,id}){
        return axiosInstance.post('addressInfo/update',{
            address,phone,person_name,tag,id
        })
    },
   


}

export default addressInfo